﻿@model trangbaocao.Models.Sort_DeviceModel
<div class="container_12">       
    <div class="grid_12">            
        <div class="module">
                <h2 align="right"><span><a href="@Url.Action("Index", "Sort_Device")">Quay lại</a></span></h2>                       
                <div class="module-body">
                @using (Html.BeginForm("EditSort_Device", "Sort_Device", FormMethod.Post, new { id = "AddSort_Device" }))
                {                      
                    <div align="center"><h3>SỬA LOẠI THIẾT BỊ</h3>
                        <div class="account" align="center"> 
                            <img src="@Url.Content("~/Content/Body/Images/Body_Images/Edit_Device.png")" width="12%" />
                        </div>                        
                    </div>                    
                    if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-error">@TempData["msg"]</span>
                    }  
          
                <p style="width:25%; float:left"></p>
                    <div style="width:50%; text-align:center; float:left">               
                    <p align="center">
                        <label style="width:55%; text-align:left;">Tên loại thiết bị:</label>
                            <div class="tendangnhap" align="center" style="padding-left: 10px; width: 100%">
                            @Html.TextBoxFor(model => model.name, new { @name = "name", @class = "input-medium" }) 
                            <font color="red">(*)</font>
                            <label style="width:60%; text-align:left">
                            @Html.ValidationMessageFor(model => model.name)
                            </label>
                        </div>                                                                     
                    </p>                            
                    <p align="center">
                        <label style="width:55%; text-align:left;">Hệ thống viễn thông:</label>
                            @if (Model.chung_loai_tb_id!=null)
                            { 
                                @Html.DropDownListFor(x => x.main_sort_device_id, Model.chung_loai_tb_id, new { @disabled = "disabled" }) 
                                @Html.HiddenFor(x => x.main_sort_device_id)                    
                            }
                    </p>                     
                       
                    <p align="center">
                        <label style="width:55%; text-align:left;">Mô tả:</label>
                        @Html.TextBoxFor(model => model.mo_ta_dac_tinh, new { @name = "mo_ta_dac_tinh", @class = "input-medium" })
                        <label>@Html.ValidationMessageFor(model => model.mo_ta_dac_tinh)</label>
                    </p>
                    <p align="center">
                        <label style="width:55%; text-align:left;">Ghi chú:</label>
                        @Html.TextBoxFor(model => model.ghi_chu, new { @name = "ghi_chu", @class = "input-medium" })
                    </p>     
                </div>
                     <div class="button" align="center">
                        <p style="width:25%; text-align:left;">
                        <input class="submit-green" type="submit" value="Sửa"/> 
                        <input class="submit-gray" type="reset" value="Hủy" />
                        @*<input class="submit-gray" type="button"  onclick="location.href='@Url.Action("Index", "User")'" value="Quay lại" />*@
                        </p>
                    </div>
                }                    
                </div> <!-- End .module-body -->

        </div>  <!-- End .module -->
        <div style="clear:both;"></div>
    </div> <!-- End .grid_12 --> 
    <div style="clear:both;"></div>
</div> <!-- End .container_12 -->